public class LabeledPoint extends Point {
    private double xPoint;
    private double yPoint;

    public LabeledPoint(String name, double xPoint, double yPoint) {
        super(name);
        this.xPoint = xPoint;
        this.yPoint = yPoint;
    }

    public double getxPoint() {
        return this.xPoint;
    }

    public void setxPoint(double xPoint) {
        this.xPoint = xPoint;
    }

    public double getyPoint() {
        return this.yPoint;
    }

    public void setyPoint(double yPoint) {
        this.yPoint = yPoint;
    }

    @Override
    public String toString() {
        return "LabeledPoint{" +
                "xPoint=" + xPoint +
                ", yPoint=" + yPoint +
                '}';
    }
}

